package com.lonni.rpc.core.model;

import com.lonni.rpc.core.util.IpUtil;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * RpcNettyProperties：
 * Description:
 *
 * @author: Lonni
 * @date: 2024/7/9 0009 16:29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class RpcNettyProperties implements Serializable {

    /**
     * boos线程主的数量
     */
    private Integer boosGroupNum = 1;

    /**
     * work线程组的数量
     */
    private Integer workGroupNum = 5;

    /**
     * 不配置 默认获取当前主机的ip地址
     */
    private String ip= IpUtil.getIp();

    private Integer port=9898;

}



